package com.atguigu.jxc.controller;

import com.atguigu.jxc.service.GoodsService;
import org.hibernate.validator.constraints.EAN;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/goodsType")
public class LoadGoodsTypeController {
    @Autowired
    private GoodsService goodsService;
    //http://localhost:8080/goodsType/loadGoodsType
    @PostMapping("loadGoodsType")
    public String loadGoodsType(){
        List<Map<String, Object>> loadGoodsTypeMap=goodsService.loadGoodsType();
        return null;
    }
}
